Check if users is an array to prevent PHP warning