Added a method to check whether a specific block is contained.