Incorrect indentation.
Please make indent against the if scope rather than '=' operator.