I don't think the `check_requirements` function should produce side effects, checking if the file is writeable or not is all that's required to happen.