added script::empty() method.