SyntaxFix
Write A Post
Hire A Developer
Questions
You can use LINQ to achieve that too:
var exists = array.ElementAtOrDefault(index) != null;