Check parent class is a function to prevent developer screw ups