Add dump function to if not exists block