public function setFlash($key, $message)
    {
        if (!Session::has('flashMessages')) {
            return false;
        }

        if (!isset($key) || !isset($message[0])) {
            return false;
        }

        // Verify $key is a valid message type or not
        if (!in_array($key, $this->validFlashTypes)) {
            throw new \Exception('"'.strip_tags($key).'" is not a valid message type!');
        }

        // If the flash session array doesn't exist, make it
        if (!array_key_exists($key, Session::get('flashMessages'))) {
            Session::set('flashMessages', [$key => []]);
        }

        Session::set('flashMessages', [$key => [$message]]);

        return true;
    }