diff --git a/src/main/java/com/codeborne/selenide/impl/AbstractSelenideElement.java b/src/main/java/com/codeborne/selenide/impl/AbstractSelenideElement.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/codeborne/selenide/impl/AbstractSelenideElement.java
+++ b/src/main/java/com/codeborne/selenide/impl/AbstractSelenideElement.java
@@ -224,7 +224,7 @@ abstract class AbstractSelenideElement implements InvocationHandler {
     return shouldNot(proxy, prefix, (Condition[]) args[0]);
   }
 
-  protected boolean isImage() {
+  protected Boolean isImage() {
     WebElement img = getActualDelegate();
     if (!"img".equalsIgnoreCase(img.getTagName())) {
       throw new IllegalArgumentException("Method isImage() is only applicable for img elements");
make it compilable with Java 6