public function checkApiState($method) { if (in_array($method, $this->disableFalseReturnOnly)) { return false; } else { if (!in_array($method, $this->disableWhiteList)) { // we need to fetch options even without a session to verify parent::checkApiState($method); } } return true; }