Nothing's wrong with it, I just prefer $server because you can do
if ($server)
while with $status you must do
if ($status == connected)
which is lengthier.