allows nil as array input