Use decorator for opennes check