adding failsafe to php and iterating over predictions to get top 5 that return 200 vs. just top 5
adding addtional stop case to while
Merge pull request #1 from Storeplacer/andrewsc-PR

adding failsafe to php and iterating over predictions to get top 5