Can't tell from that photo... is that being used as an exit from the tank, or a return into it?
If it's an overflow, put an up facing 90 on it, so that you're surface skimming. Pump goes off, it'll settle to the top of the 90 and stop.
If it's a return, put a short piece of loc-line on it, angled very near the surface of the tank. The closer to the surface you can come, the less water will drain when the pump is off.
When you design a system, having sufficient space in the sump for the water that does drain should be one of your design criteria.
Yes, you can buy an anti-back flow valve. I don't trust them. Seen them fail too often. With a little planning and thought given to a system design, they're unnecessary.