because if statement written like this: if ( !empty($oldQuestionList) && !empty($oldQuestionList) ).
I think it should be like this: if ( !empty($oldQuestionList) && !empty($allQuestionList) )
because if statement written like this: if ( !empty($oldQuestionList) && !empty($oldQuestionList) ).
I think it should be like this: if ( !empty($oldQuestionList) && !empty($allQuestionList) )