diff --git a/checks/class-title-check.php b/checks/class-title-check.php
index 9f0c3515..03373101 100644
--- a/checks/class-title-check.php
+++ b/checks/class-title-check.php
@@ -54,7 +54,7 @@ public function check( $php_files, $css_files, $other_files ) {
// Look for
and tags.
checkcount();
- if ( ( false !== strpos( $file_content, '' ) ) || ( false !== strpos( $file_content, '' ) ) ) {
+ if ( ( is_string( $file_content ) && false !== strpos( $file_content, '' ) ) || ( is_string( $file_content ) && false !== strpos( $file_content, '' ) ) ) {
$filename = tc_filename( $file_path );
$grep = tc_grep( '', $file_path );
$this->error[] = sprintf(