Another minor suggestion: I would choose `error` for the key of the array instead of just `E` for code readability reasons. The same goes for using `warning` instead of just `W`.