Check profile object filename instead of data (which will return a default header even if the profile is empty) to determine if a profile has been set