Throw exception on write-fail?
Apply phpcs