Use method instead of class variable

The method checks to see if @@messages is initialized and returns an empty array if not, so we should always use that.