Modified errorCheck()

removed else, return false