Only define user $user if it's not defined elsewhere