converting path/server to string before checking if empty to be safe