Very minor suggestion: I would call this variable `$messages` instead of `$message` beacuse it's meant to store several error and warning messages.