added guard to ensure pry-doc exists, improved some code
added guard to ensure pry-doc exists, improved some code

raeno/pry,josue804/debunker,printercu/pry,sideci-sample/sideci-sample-pry,bronzdoc/pry,nju520/pry,jasonm23/pry,shockone/pry,geoffreylitt/pry,gfvcastro/pry,nju520/pry,caporta/pry,shockone/pry,85x14/pry,ooohiroyukiooo/pry,ooohiroyukiooo/pry,caporta/pry,bronzdoc/pry,ngpestelos/pry,raeno/pry,sferik/pry,85x14/pry,printercu/pry,jasonm23/pry,jasnow/pry,jasonm23/pry,jasnow/pry,raeno/pry,pvdb/pry,pvdb/pry,richo/pry,deivid-rodriguez/pry,ooohiroyukiooo/pry,josue804/debunker,icebreaker/pry,icebreaker/pry,nju520/pry,tdg5/pry,tdg5/pry,tdg5/pry,scalixte-mdsol/pry,85x14/pry,scalixte-mdsol/pry,scalixte-mdsol/pry,jasnow/pry,geoffreylitt/pry,sferik/pry,caporta/pry,ngpestelos/pry,shockone/pry,gfvcastro/pry