Added a check to ensure that the data returned by the GtHub API is an array