Made the attendence api call an array