if block -> if block_given?

I prefer to take this way as against that way.
Merge pull request #1 from mitoma/patch-1

if block -> if block_given?