<?php $purchaseSnapshot = ['type' => 'rock']; var_dump(isset($purchaseSnapshot['type']) ?: $purchaseSnapshot['type']);
You have javascript disabled. You will not be able to edit any code.