Remove backported is_expected helper