added comments
changed method name 'check' to 'is_empty