Add support for 'has' and 'keys' methods