null-safe version of isMultiple check
The return value of $parameterSpecificationBag->getSpecificationByName($mappedField)
isn't guaranteed not to be null - e.g. if a field in the form processor only applies to certain contact subtypes. With PHP 8.0+, we could use the nullsafe operator here, but instead we'll add an extra conditional.