null check for initial queries