move nil check to a method that yields to a block if the value is not nil
move nil check to a method that yields to a block if the value is not nil

iainbeeston/rails,fabianoleittes/rails,prathamesh-sonpatki/rails,rails/rails,Erol/rails,assain/rails,koic/rails,bogdanvlviv/rails,arjes/rails,tgxworld/rails,rossta/rails,starknx/rails,Envek/rails,kachick/rails,fabianoleittes/rails,repinel/rails,betesh/rails,prathamesh-sonpatki/rails,gfvcastro/rails,georgeclaghorn/rails,yalab/rails,kddeisz/rails,arunagw/rails,ttanimichi/rails,ledestin/rails,Erol/rails,vassilevsky/rails,aditya-kapoor/rails,deraru/rails,arunagw/rails,bradleypriest/rails,brchristian/rails,EmmaB/rails-1,starknx/rails,arjes/rails,yahonda/rails,untidy-hair/rails,mechanicles/rails,schuetzm/rails,Sen-Zhang/rails,ttanimichi/rails,odedniv/rails,kenta-s/rails,rails/rails,repinel/rails,joonyou/rails,illacceptanything/illacceptanything,gcourtemanche/rails,stefanmb/rails,tjschuck/rails,marklocklear/rails,illacceptanything/illacceptanything,kaspth/rails,stefanmb/rails,deraru/rails,Edouard-chin/rails,yhirano55/rails,assain/rails,notapatch/rails,iainbeeston/rails,flanger001/rails,tgxworld/rails,kmayer/rails,ngpestelos/rails,illacceptanything/illacceptanything,hanystudy/rails,ttanimichi/rails,ledestin/rails,Envek/rails,hanystudy/rails,flanger001/rails,esparta/rails,xlymian/rails,lucasmazza/rails,rbhitchcock/rails,Vasfed/rails,jeremy/rails,odedniv/rails,amoody2108/TechForJustice,gavingmiller/rails,repinel/rails,palkan/rails,palkan/rails,mechanicles/rails,sealocal/rails,illacceptanything/illacceptanything,mtsmfm/railstest,88rabbit/newRails,Sen-Zhang/rails,gauravtiwari/rails,fabianoleittes/rails,utilum/rails,printercu/rails,richseviora/rails,matrinox/rails,tijwelch/rails,lucasmazza/rails,yahonda/rails,untidy-hair/rails,mechanicles/rails,baerjam/rails,elfassy/rails,printercu/rails,jeremy/rails,Envek/rails,pvalena/rails,flanger001/rails,shioyama/rails,gauravtiwari/rails,palkan/rails,illacceptanything/illacceptanything,gavingmiller/rails,betesh/rails,ngpestelos/rails,bogdanvlviv/rails,utilum/rails,brchristian/rails,riseshia/railsguides.kr,felipecvo/rails,maicher/rails,georgeclaghorn/rails,kaspth/rails,xlymian/rails,bolek/rails,yhirano55/rails,shioyama/rails,kmcphillips/rails,hanystudy/rails,kmcphillips/rails,coreyward/rails,richseviora/rails,voray/rails,mtsmfm/railstest,MSP-Greg/rails,Envek/rails,mtsmfm/rails,BlakeWilliams/rails,odedniv/rails,mtsmfm/rails,MSP-Greg/rails,printercu/rails,kirs/rails-1,illacceptanything/illacceptanything,kirs/rails-1,lcreid/rails,tgxworld/rails,prathamesh-sonpatki/rails,mohitnatoo/rails,bolek/rails,rossta/rails,Stellenticket/rails,amoody2108/TechForJustice,Stellenticket/rails,illacceptanything/illacceptanything,jeremy/rails,matrinox/rails,88rabbit/newRails,lcreid/rails,gauravtiwari/rails,mijoharas/rails,notapatch/rails,voray/rails,Vasfed/rails,rails/rails,tgxworld/rails,coreyward/rails,Spin42/rails,baerjam/rails,deraru/rails,voray/rails,yawboakye/rails,illacceptanything/illacceptanything,marklocklear/rails,fabianoleittes/rails,Edouard-chin/rails,vipulnsward/rails,sealocal/rails,tjschuck/rails,baerjam/rails,bradleypriest/rails,georgeclaghorn/rails,notapatch/rails,Vasfed/rails,marklocklear/rails,illacceptanything/illacceptanything,aditya-kapoor/rails,yahonda/rails,yasslab/railsguides.jp,bradleypriest/rails,illacceptanything/illacceptanything,MSP-Greg/rails,pvalena/rails,Edouard-chin/rails,ledestin/rails,kddeisz/rails,samphilipd/rails,coreyward/rails,88rabbit/newRails,kmcphillips/rails,vipulnsward/rails,kachick/rails,riseshia/railsguides.kr,kamipo/rails,kmcphillips/rails,joonyou/rails,illacceptanything/illacceptanything,alecspopa/rails,sergey-alekseev/rails,mijoharas/rails,yalab/rails,schuetzm/rails,Spin42/rails,kenta-s/rails,illacceptanything/illacceptanything,eileencodes/rails,MichaelSp/rails,yasslab/railsguides.jp,mathieujobin/reduced-rails-for-travis,flanger001/rails,xlymian/rails,esparta/rails,mechanicles/rails,assain/rails,betesh/rails,pschambacher/rails,yawboakye/rails,felipecvo/rails,untidy-hair/rails,rossta/rails,vipulnsward/rails,rbhitchcock/rails,vassilevsky/rails,Stellenticket/rails,EmmaB/rails-1,brchristian/rails,mathieujobin/reduced-rails-for-travis,esparta/rails,gfvcastro/rails,schuetzm/rails,kenta-s/rails,pvalena/rails,samphilipd/rails,sergey-alekseev/rails,yahonda/rails,BlakeWilliams/rails,baerjam/rails,kddeisz/rails,illacceptanything/illacceptanything,bolek/rails,deraru/rails,gfvcastro/rails,pschambacher/rails,vassilevsky/rails,Edouard-chin/rails,yawboakye/rails,alecspopa/rails,arjes/rails,lcreid/rails,eileencodes/rails,pvalena/rails,aditya-kapoor/rails,MSP-Greg/rails,arunagw/rails,rafaelfranca/omg-rails,mtsmfm/rails,starknx/rails,koic/rails,utilum/rails,tijwelch/rails,alecspopa/rails,matrinox/rails,repinel/rails,esparta/rails,tjschuck/rails,MichaelSp/rails,kmayer/rails,travisofthenorth/rails,rafaelfranca/omg-rails,illacceptanything/illacceptanything,kamipo/rails,illacceptanything/illacceptanything,stefanmb/rails,yalab/rails,tijwelch/rails,elfassy/rails,Erol/rails,lcreid/rails,yhirano55/rails,jeremy/rails,untidy-hair/rails,arunagw/rails,travisofthenorth/rails,pschambacher/rails,travisofthenorth/rails,shioyama/rails,Stellenticket/rails,iainbeeston/rails,Erol/rails,vipulnsward/rails,amoody2108/TechForJustice,BlakeWilliams/rails,Sen-Zhang/rails,kirs/rails-1,mohitnatoo/rails,felipecvo/rails,elfassy/rails,gavingmiller/rails,printercu/rails,ngpestelos/rails,EmmaB/rails-1,maicher/rails,mohitnatoo/rails,tjschuck/rails,Vasfed/rails,yalab/rails,eileencodes/rails,lucasmazza/rails,sergey-alekseev/rails,eileencodes/rails,rafaelfranca/omg-rails,MichaelSp/rails,kddeisz/rails,richseviora/rails,assain/rails,betesh/rails,rails/rails,Spin42/rails,joonyou/rails,mathieujobin/reduced-rails-for-travis,yasslab/railsguides.jp,koic/rails,notapatch/rails,iainbeeston/rails,bogdanvlviv/rails,yawboakye/rails,joonyou/rails,yasslab/railsguides.jp,kamipo/rails,gcourtemanche/rails,maicher/rails,BlakeWilliams/rails,riseshia/railsguides.kr,kmayer/rails,mijoharas/rails,sealocal/rails,prathamesh-sonpatki/rails,utilum/rails,shioyama/rails,mtsmfm/railstest,palkan/rails,gcourtemanche/rails,yhirano55/rails,gfvcastro/rails,aditya-kapoor/rails,travisofthenorth/rails,rbhitchcock/rails,samphilipd/rails,schuetzm/rails,bogdanvlviv/rails,georgeclaghorn/rails,riseshia/railsguides.kr,mohitnatoo/rails,kaspth/rails,kachick/rails