Safer check, corrects indentation.