There should be no wraper, also the code in the wraper looks odd, i dont think these checks are needed