Adding another check for runCache in function check()

checking if ``undefined`` OR ``null``

variable ``runCache`` is actually set to ``null`` above