function: empty() method