I guess you can use `Objects` from java 7 here and on equals =)