Added array check
Merge pull request #66 from EnzoMartin78/master

Added message length/definition check