Not quite. When you FreeEntity, the handle does not automatically reset to zero. There's really no way to know if an entity exists or not unless you manually keep track.
Edit: Looks like CyBeRGoth beat me to it.
sphere = CreateSphere() ... some code FreeEntity sphere sphere = 0 //manually reset entity handle to 0
Edit: Looks like CyBeRGoth beat me to it.