Refactor: scheduler: combine two "if" statements
... for readability, and ease of adding another block later