checkUserData returns nullptr is there's no userdata