Use the is_string and is_callable functions