:one: There should probably be a check that `$profile_type` has a sensible (ie. non-empty) value before proceeding, in case the provider does not provide a profile type?