Check if file existing before opening it (#3)