Thanks for the reply.
Reason why I write 'practically' because, the only difference between the files is a return statement returning false in the v1 file and returning true in the v2 file. I'm confused on why only v2 file is being flagged as vulnerability.
@pondus, do you know of any solution/workaround for this?