I dont know if this is github messing with the diff but indentation looks wrong, (also a space after the if .. .if ())