if (isset($this->permission[$key])) { return in_array($value, $this->permission[$key]); } else { return false; }