Thank you for suggestion. I used the style of os_getperm, os_setperm and os_file_exists. Maybe it would be appropriate to use guards in these functions too?