How about
$aList = empty($aString) ? [] : explode(',', $aString)
However, the comment by @bassxzero using preg_split also looks nice.
preg_split