add isSleeping() to sleep component.

Signed-off-by: Nick Minkler <sleaker@gmail.com>