possible minor refactor - similar to the chunk element check in getObject()