MB-12410: Make the check for XtoYll dynamic

Change-Id: Ie84c1263ed5cf56d385b3f62349fa55cee75c19c
Reviewed-on: http://review.couchbase.org/42381
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: abhinav dangeti <abhinav@couchbase.com>