This check is unnecessary because the JSON schema parser makes sure that the "profile" parameter is present and a string because you specified that in the JSON schema describing the LoadProfile method.