Check for profiles before deleting