This check could be performed a earlier (line 1471) as the code in between should not be needed for this call.