public function findById($id, $existCheck = false)
    {
        $record = $this->prepareQuery($this->model)->find($id);

        if ($existCheck) {
            return ! empty($record);
        }

        return $record;
    }
public function findById($id, $existCheck = false)
    {
        $record = $this->prepareQuery($this->model)->find($id);

        if ($existCheck) {
            return ! empty($record);
        }

        return $record;
    }
public function findById ( $ id , $ existCheck = false ) { $ record = $ this -> prepareQuery ( $ this -> model ) -> find ( $ id ) ; if ( $ existCheck ) { return ! empty ( $ record ) ; } return $ record ; }
Find record by Id

@param      $id
@param bool $existCheck
@return mixed
Find record by Id