public function isEmpty()
    {
        if ($this->isGhost()) {
            $this->load();
            $this->markAsLoaded();
        }
        return empty($this->data);
    }
public function isEmpty()
    {
        if ($this->isGhost()) {
            $this->load();
            $this->markAsLoaded();
        }
        return empty($this->data);
    }
public function isEmpty ( ) { if ( $ this -> isGhost ( ) ) { $ this -> load ( ) ; $ this -> markAsLoaded ( ) ; } return empty ( $ this -> data ) ; }
Checks whether this model is empty.

@return bool TRUE if this model is empty, FALSE if it is writable
Checks whether this model is empty .