Is cakephp 3.3 is totally compatible with php 7?

Try to echo the parameter to the screen, to see what type it is. Maybe it’s a query that first needs to be exeuted. You can either use debug or a test function to see why the parameter is not recognised as something countable.