diff --git a/src/Loader/PhpFileLoader.php b/src/Loader/PhpFileLoader.php
index ec86bc092c96b1c313cc19a0a08c1d56f3477d86..ae485be70fbe7fa3cda6599b3c72226a861c468d 100644
--- a/src/Loader/PhpFileLoader.php
+++ b/src/Loader/PhpFileLoader.php
@@ -13,8 +13,13 @@ class PhpFileLoader {
 	public function load( string $resource ) {
 		// TODO: add file locator
 		return ( static function () use ( $resource ) {
-			return include $resource;
+			$data = include $resource;
+			if ( $data === false ) {
+				throw new \RuntimeException( "Could not load $resource" );
+			}
+
+			return $data;
 		} )();
 	}
 
-}
\ No newline at end of file
+}