Then add some handling for returning true if msg.toLowerCase is undefined.