Reverted invalid logic, there is no need to check documentReadySate