empty check
empty check
empty check
added methods
added javadoc