Should be done as this:

``` java
if (itemstack == null || itemstack.id != this.k) {
    return false;
}