break loop if can't find object
Merge pull request #1 from rodrigo-lima/develop

break loop if can't find object. Thanks @rodrigo-lima