Check if the logged-in user is an admin and if the LiveReload port is open before appending the snippet at the bottom of the page.