```php
if (!in_array($actionName, $Controller->methods)) { ... }
```
And remove the line above that.