anyway you should change the `else` to `else if(node != null)` and move the else to the same line as te `}`:
```java
if (....) {
   //...
} else if (....) {

}
```