diff --git a/Source/Engine/Core/Collections/Array.h b/Source/Engine/Core/Collections/Array.h
index a8390f051..d67aecbc1 100644
--- a/Source/Engine/Core/Collections/Array.h
+++ b/Source/Engine/Core/Collections/Array.h
@@ -250,6 +250,16 @@ public:
return _count == 0;
}
+ ///
+ /// Determines if given index is valid.
+ ///
+ /// The index.
+ /// true if is valid a index; otherwise, false.
+ bool IsValidIndex(int32 index) const
+ {
+ return index < _count && index >= 0;
+ }
+
///
/// Gets the pointer to the first item in the collection (linear allocation).
///