always,we shold return as early as possible and i will write this function like this: 

public function use_db($database)
{
  if (empty($database))
  {
    return FALSE;
  }

   Normal logic
}