Add check for empty profile deletion