Update web/api.php
Update empty -> isset