If ($object = menu_get_object()) {
  // node logic
}
elseIf ($object = menu_get_object('user')) {
}

Just seems a little nicer to me.