Check if not embedded into symfony 2