Added config.json and authenticate.json to .gitignore
Added a check for array to error handler