Adds valid_for_context?(context) method