data/model/Behaviors.php
public static function hasBehavior($name) {
		static::_initializeBehaviors();

		try {
			list($model, $class) = static::_classesForBehavior($name);
		} catch (Exception $e) {
			return false;
		}
		return isset(static::$_behaviors[$model][$class]);
	}
public static function hasBehavior($name) {
		static::_initializeBehaviors();

		try {
			list($model, $class) = static::_classesForBehavior($name);
		} catch (Exception $e) {
			return false;
		}
		return isset(static::$_behaviors[$model][$class]);
	}
public static function hasBehavior ( $ name ) { static :: _initializeBehaviors ( ) ; try { list ( $ model , $ class ) = static :: _classesForBehavior ( $ name ) ; } catch ( Exception $ e ) { return false ; } return isset ( static :: $ _behaviors [ $ model ] [ $ class ] ) ; }
Allows to check if a certain behavior is bound to the model.

@param string $name The name of the behavior.
@return boolean
Allows to check if a certain behavior is bound to the model .