Fixed getIssues snippet for multiple usage

Fixes Issue #7 (check if function already exists)

Signed-off-by: Martin Gartner <martin.gartner@bitego.com>