public function authenticate($identity) { return \App\Model\User::count(['conditions' => 'id = :id:', 'bind' => ['id' => (int) $identity]]) > 0; }