Add pass-by-reference argument to exists() so if method returns TRUE a subsequent get() is unnecessary