-if ( ( $prospect_main || $opt{'disable_empty'} ) && !$opt{'is_optional'} ) {
- $cust_location = $cust_location[0];
-}
+$cust_location = $cust_location[0]
+ if ( $prospect_main || $opt{'disable_empty'} )
+ && !$opt{'is_optional'}
+ && @cust_location;