Checks file existence and write permissions
5.3 not 5.4