[filter] Reverse equality tests to avoid unwanted assignment.
[handler] Reverse equality tests to avoid unwanted assignment.