add soft delete check to GetElement