Added inline hint.
Added isEmpty method.