Check if opening hours has periods