Maelstrom: Added an accessor to tell when the array is empty.

https://github.com/libsdl-org/Maelstrom/commit/9c77ae9f73756499f1055b2dd39344f02ffa616f

From 9c77ae9f73756499f1055b2dd39344f02ffa616f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 6 Nov 2011 10:50:10 -0500
Subject: [PATCH] Added an accessor to tell when the array is empty.

---
 utils/array.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/utils/array.h b/utils/array.h
index 54998eb4..346fb898 100644
--- a/utils/array.h
+++ b/utils/array.h
@@ -70,6 +70,9 @@ class array
 		}
 		return false;
 	}
+	bool empty() const {
+		return length() == 0;
+	}
 	int length() const {
 		return m_len;
 	}