Corrected the check for the existence of jasmine