Changed the behaveour of 'has' to exclude empty strings.

Added 'exists' to check if a key exists.