Adding another check for runCache in function check()

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