Move the checks before the this. stuff