Add IsValidPlayer()
before flag return cleanup
#859
Merged
IsValidPlayer()
before flag return cleanup
#859