This function doesn't actually look like it returns int, reason why you have that is autocomplete from PHPStorm I guess :)