adds check for when users array is empty