Verse error in "Create a custom keycard item" tutorial

In this tutorial - https://dev.epicgames.com/documentation/en-us/fortnite/create-a-custom-keycard-item-in-fortnite-

When I get to the portion where I am creating a verse script for the custom keycard, I get the following error from the compiler.

keycard_gameplay_device.verse(51,32, 51,52) : Script error 3506: Unknown member FindComponentsOfType in inventory_component.

It’s referring to the following line of code….

if(TargetInventory.FindComponentsOfType[keycard_item_component].Length > 0):

Has FindComponentsOfType[] been deprecated? Is there a better way to go about finding that component in the inventory?

The full code snippet is available in the tutorial link.

Thank you,

L