Use cached regular expressions from Core.
- Added isEmptyArray() to exposed functions.
- Fixed a small bug in isEmptyObject().