changed >= 0 to >0 for cycle length

this strengthens the validity of my function and gives a purpose for
this assert function.