public static function checkForObject($data, $ref=null) {
		if( empty($data['email']) ) {
			return;//Nothing to check. Email is mandatory.
		}
		$where	= 'email LIKE '.static::formatValue($data['email']);
		$what	= 'email';
		if( !empty($data['name']) ) {
			$what	.= ', name';
			$where	.= ' OR name LIKE '.static::formatValue($data['name']);
		}
		$user = static::get(array(
			'what'		=> $what,
			'where'		=> $where,
			'output'	=> SQLAdapter::ARR_FIRST
		));
		if( !empty($user) ) {
			if( $user['email'] === $data['email'] ) {
				static::throwException("emailAlreadyUsed");
				
			} else {
				static::throwException("entryExisting");
			}
		}
	}