fixed exists method, added lodash