simplify 'behavior' property check