Refactored is_callable and is_not_callable