There's already a function IsUnitSwimming(unitTag).
I guess the two functions IsUnitFalling(unitTag) / IsUnitJumping(unitTag) wouldn't be hard to implement and could give quite a bit of nice insights on what is currently going on (analyzing a few things).
Furthermore, i believe there might be a few nice things possible with these two functions.