check if obj is a function.

TODO: consider if it would be a good idea to include a generic parameter for the function's signature. i.e.: <FN extends Function = Function>(obj: any): obj is FN