fixes error throwing when calling methodes from the first element
Merge pull request #30 from garthenweb/empty-element-returns

fixes error throwing when calling methodes on the first element