added has_blocks function
Merge remote-tracking branch 'upstream/master'
fixed function
Merge pull request #31 from yulianglukhenko/feature/has_blocks_function

added has_blocks function