Added is_email function