I think for brevity purposes this could be just a one liner:
require 'berkshelf/version' rescue LoadError