Follow node callback error convention and use null instead of undefined