Add keys to entity

What if $json['unlHRPrimaryDepartment'][0] is not set?   Will it be set for students?