Checking case for empty list of profiles

Checking case for empty list of profiles