Checks if the function meets the condition for inclusion.
true if the function should be included, false otherwise
The function to check