Wait for an express middlware to finish it's async action before moving to the next middlware
Checking for a value in an array returns false where it should clearly return true as the value is present in the array