You can imagine how surprised I am that your code “works”. I recently did a talk around this subject. Maybe it is worth watching:
Don’t get me wrong but I think you are missing some basics around writing assertions in Postman. It would also not hurt to know some JavaScript basics.