Removed invalid return value check that might have caused errors in the PHP log.