If a person has a valid doubt, in the event that the time for performing prayers is short such that he cannot perform it from the beginning, he must not break his prayer and must act according to the instructions that were mentioned. However, if there is ample time for prayers, he can break his prayer and perform it from the beginning.