code: public static boolean bothNullOrEqual(Object a, Object b) {
          return (a == null || b == null) ? (a == b) : a.equals(b);
      }
docs: Checks if object a and b are both null or are equal
  
  @return if both null or equal