I think this is redundant; getPersonAttributeGroupStoreDefinitions would get all definitions so querying again for definition by name would fail if the query failed.