Just isroutine here is fine (it actually calls isfunction internally)