HR-345 Modification to check if profile type is array if sub type is not defined