Web Programming openserverfile vs setactivedatabase

Is there a “best practice” when web programming. Which should be used, openserverfile vs setactivedatabase?

If there’s any doubt about the file being open, OpenServerFile would be the better choice. If the file is open, no harm done.