WP-3069: The entity may not exist or may not be a field collection, check first.
WP-3069: Pass the entity to the allowed values callback, and do not cache the results.