Update filter logic to use new embed template and embed API endpoints

@anthonyt Want to have a look through this?
Yes, it was === true before. preg_match() returns 1 if the pattern matches given subject, 0 if it does not, or FALSE if an error occurred. So casting to a boolean will return expected results.