Method empty() added