Add exists method

Fix #2