Removed needless check, corrected indentation