handle undefined params in enforceArray