Refactor: scheduler: add library function for checking whether resource is disabled
... so it can be reused later