Removed useless commented function
Added check.go as a dependency