public function hasStateHandler() { if ($this->stateHandler !== null) { return true; } return false; }