Separate out server check into static method for easier changes if needed