Added check for availability of element in memcached