but the check is needed for the !object.equals(…) a bit further on that line isn't it?