I havent used this myself but if you use the code
if not is_colliding():
do your code here
this should work. You could put this in
func _process(delta):
which will automatically run each frame so you will always be checking. This will take up processing time each frame though so I dont know if this will slow down the game at all.