diff --git a/lionengine-core/src/main/java/com/b3dgs/lionengine/core/PlayerAbstract.java b/lionengine-core/src/main/java/com/b3dgs/lionengine/core/PlayerAbstract.java
index <HASH>..<HASH> 100644
--- a/lionengine-core/src/main/java/com/b3dgs/lionengine/core/PlayerAbstract.java
+++ b/lionengine-core/src/main/java/com/b3dgs/lionengine/core/PlayerAbstract.java
@@ -104,7 +104,7 @@ public abstract class PlayerAbstract implements Audio
     public void play()
     {
         final String name = media.getPath();
-        if (Medias.getResourcesLoader() != null)
+        if (Medias.getResourcesLoader().isPresent())
         {
             if (cache == null)
             {
#<I>: null check replaced by ifPresent.