Added an array helper class and abstracted spl hashing