fetching whether it is a trapped chest dynamically