Checks whether a function is.