If you have a water section you should always have a rock or stick allowing access out of the water
Also you should NEVER have a section where the treefrog can get stuck underwater and drown

As long as you have access out of the water the tree frogs should be fine

It would be fine if your treefrog ate a guppy