Adds documentation for hasEnded