Fixed a small bug concerning break conditions

(times || times == undefined) would be always true (except for times == null)
Merge pull request #1 from reneraab/patch-1

Fixed a small bug concerning break conditions