Detecting with is_callable() is also an option