This needs to be fixed, it's not accurate as-written.  it will return true (or a truthy value of empty list), even when the element only contains a class attribute (and the word 'disabled' is not in it).

The problem is if the `when` condition is true, it returns a list.  It needs to return some boolean value.