protected function addActionCheck($key) { if (isset($this->actions[$key])) { throw new DataGridException("There is already action at key [{$key}] defined."); } }