check for php callback return value