From 929d51708b19c63665f2eea2bfa5844061fa6cb1 Mon Sep 17 00:00:00 2001 From: Dale Allan Date: Tue, 7 Nov 2017 19:38:44 +0200 Subject: [PATCH] Update ExtendedArray.php Alias has function with filled --- src/ExtendedArray.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/ExtendedArray.php b/src/ExtendedArray.php index 629f851..544489c 100644 --- a/src/ExtendedArray.php +++ b/src/ExtendedArray.php @@ -94,7 +94,18 @@ public function has($key) return true; } - + + /** + * Check if the given key contains a non-empty value. + * + * @param string $key + * @return bool + */ + public function filled($key) + { + return $this->has($key); + } + /** * Check if the given key is an empty string. *