Would this be clearer as a list of open formats, a list of closed formats and check against both arrays? Less duplication.