checking if console obj exists