Adding check for array value in helper.module

Adds a check for an array value or throws an error if not set. Prevents php errors on local development.