added logExists method
added logExists method
added logExists