implement an unpublished? method wich returns true if the object is unpublished else it returns false