the second part of the OR is redundant: byte[].class != obj.getClass()