[Fix] return value in write context with empty method for php 5.4