Update XML check to use strpos and a Yoda condition