Check for null appendToResponse