Refactor: scheduler: allow remote checking functions to take const arguments
Also return bool and simplify the code while we're add it.
This was done in preparation for an attempted fix that didn't pan out,
but it's still potentially useful on its own.