Checks if a given function is deprecated.