Use typeof to check if validate result is deferred or boolean