How to tell if audio is still playing or has finished?

Is there a direct way of knowing in the code if an audio file is still playing or has stopped? I can think of a roundabout way of finding out, but is there a bool or function or something in the code already that will say if an audio file is still playing or not?

UAudioComponent::IsPlaying | Unreal Engine Documentation ?