how about return unless config.js_uri.any? in add scripts method. Better encapsulation.