Check for key before using