public function getError($key = false)
    {
        if (!$key) {
            return $this->errorMessages;
        }

        if ($this->hasError($key)) {
            return $this->errorMessages[$key];
        }

        return false;
    }