Model/Behavior/SoftDeleteBehavior.php
public function existsAndNotDeleted(Model $model, $id) {
		if ($id === null) {
			$id = $model->getID();
		}
		if ($id === false) {
			return false;
		}
		$exists = $model->find('count', array('conditions' => array($model->alias . '.' . $model->primaryKey => $id)));
		return ($exists ? true : false);
	}
public function existsAndNotDeleted(Model $model, $id) {
		if ($id === null) {
			$id = $model->getID();
		}
		if ($id === false) {
			return false;
		}
		$exists = $model->find('count', array('conditions' => array($model->alias . '.' . $model->primaryKey => $id)));
		return ($exists ? true : false);
	}
public function existsAndNotDeleted ( Model $ model , $ id ) { if ( $ id === null ) { $ id = $ model -> getID ( ) ; } if ( $ id === false ) { return false ; } $ exists = $ model -> find ( 'count' , array ( 'conditions' => array ( $ model -> alias . '.' . $ model -> primaryKey => $ id ) ) ) ; return ( $ exists ? true : false ) ; }
Check if a record exists for the given id

@param Model $model
@param id
@return mixed
Check if a record exists for the given id