isSecure()) { if ($this->isValid()) { return $this->proccess(); } throw new NotValidByFormException('The requested Entity is not valid!'); } throw new NotSecureException("You don't have the permission to execute this action!"); } }