I think this isn't fully tested by specs.  If hasFontActive == true, then add is empty set [] - the test cases all use "null"  There should be a test case where an empty array is used in place of "null".