pid=1000 is not matching
pid=1001 is not matching
pid=1002 is matching
Array
(
    [1000] => Array
        (
            [count] => 7

            [check] => 8
        )

    [1001] => Array
        (
            [count] => 5

            [check] => 4
        )

    [1002] => Array
        (
            [count] => 3

            [check] => 3
        )

)