Fixes valid_for_context? to effectively return a bool