Command runs when airborne

I want to make a command run when a player is airborne, i've tried checking if the block below the player is air but this doesn't work when the player is standing on the very edge of a block
Continue to help post