checking for None-ness before checking for profiles