Implements the #has Block helper

closes #2115
- Added new #has block helper
- Added several tests for #has helper
Merge pull request #2153 from halfdan/2115-has-block-helper