Add example to is_shallow method

Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>
Add example to is_empty method