don't validate  array if  is empty