/** * Return true if this contact have at least one IM address * * @access public * @param void * @return boolean */ function hasImValue() { return ContactImValues::count('`contact_id` = ' . DB::escape($this->getId())); }