Add `isBlock` method

Resolved #1