boolean isSameFamily(HTMLFont font){
  return ((family != null) && (font.getFamily() != null) && (family.equals(font.getFamily())));
}

boolean isSameFamily ( HTMLFont font ) { return ( ( family != null ) && ( font . getFamily ( ) != null ) && ( family . equals ( font . getFamily ( ) ) ) ) ; }
utility method that first checks that neither font family is null and then compares them
