public function isEmpty() { if ($this->snippet instanceof Document\Snippet) { return false; } return true; }