This is most likely caused by calling GetIsMoving() on a null pointer, which will try and dereference a member variable from inside protected memory, hence the seg fault.
Changing it to return true/false explicitly probably works in that case because the compiler can optimize the dereference away.
I’d double check you definitely have a valid object before calling the function.