is_phintish function

Test if the object is a phinterval or interval