The find($verificationCode) function will return a tuple of the VerificationCode table not a user so assigning it to a variable named $user is misleading.