Condition to check for empty array