Better checks for ENV[port]