return $result ?: [];
what is the explanation of this code in details please.