check for empty array in today