protected function maybeFail($method, $args) {
		$debug  = debug_backtrace(false);
		$orFail = $method.'OrFail';
		$func   = ($this->throwOnFind && $debug[2]['function'] != $orFail)? array($this, $orFail) : "parent::$method";
		return call_user_func_array($func, $args);
	}
protected function maybeFail($method, $args) {
		$debug  = debug_backtrace(false);
		$orFail = $method.'OrFail';
		$func   = ($this->throwOnFind && $debug[2]['function'] != $orFail)? array($this, $orFail) : "parent::$method";
		return call_user_func_array($func, $args);
	}
protected function maybeFail ( $ method , $ args ) { $ debug = debug_backtrace ( false ) ; $ orFail = $ method . 'OrFail' ; $ func = ( $ this -> throwOnFind && $ debug [ 2 ] [ 'function' ] != $ orFail ) ? array ( $ this , $ orFail ) : "parent::$method" ; return call_user_func_array ( $ func , $ args ) ; }
Will test if it should run a normal method or its "orFail" version, and behave accordingly.
@param string $method called method
@param array  $args   given arguments
@return mixed
Will test if it should run a normal method or its orFail version and behave accordingly .