private function removeMessage($messages)
    {
        if (! is_null($this->messageKey)) {
            unset($messages[$this->messageKey]);
            $this->messageKey = null;
        }

        return $messages;
    }
private function removeMessage($messages)
    {
        if (! is_null($this->messageKey)) {
            unset($messages[$this->messageKey]);
            $this->messageKey = null;
        }

        return $messages;
    }
private function removeMessage ( $ messages ) { if ( ! is_null ( $ this -> messageKey ) ) { unset ( $ messages [ $ this -> messageKey ] ) ; $ this -> messageKey = null ; } return $ messages ; }
Removes a set message key.

@param array $messages
@return array
Removes a set message key .