Made 'isAnyFunction' more exhaustive as it should be.