Split out elasticsearch check