use $this->getOptions() and you don't need to check for instanceof