I\'m trying to execute and if and else statement on a value which is returned from an array.find operation. But since there is a slight delay of when array.find completes, t