No need to engage on the legality debate in this petition, it's a complex assessment that depends on the context (like Fair Use). Instead maybe say "in order to check if use of protected works complies with the law, as there are strict conditions under which it is legal."