Simplification at containsBinding method suggested by sr_pere