Should be done as this:

``` java
if (event.isCancelled() || event.getTarget() == null) {
    return false;
}