Replaced more indents to whitespaces & fixed if statement to multi-line