Remove checkURL; put async code directly within restler call